using System;
using System.Data;

using Wicresoft.Common;

namespace Wicresoft.Busi.Entity
{
	[Table("Dic_Country", "", "Busi.ConnectionString")]
	public class Dic_Country : Info
	{
		#region SQL column name consts 
		public const string SQLCOL_COUNTRYNAME = "CountryName";
		#endregion


		#region Contructors
		/// <summary>
		/// Construct empty entity
		/// </summary>
		public Dic_Country () {}

		/// <summary>
		/// Construct entity by primary key, other fields will be assigned by 
		/// "Load" method.
		/// </summary>
		public Dic_Country (string CountryName)
		{
			this.CountryName = CountryName;
		}
		#endregion

		public override void Init (DataRow row)
		{
			CountryName = (string)ObjectType.StringTypeHelper.Read(row[SQLCOL_COUNTRYNAME]);
		}

		#region Properties 
		#region Property <string> CountryName
		[Property("CountryName", 100, SqlDbType.NVarChar, false, true)]
		public string CountryName 
		{
			get { return _CountryName; }
			set { _CountryName = value; }
		}
		private string _CountryName = null;
		#endregion
		#endregion




	}
}
